<?php
$routerGroup = new \Phalcon\Mvc\Router\Group(['module' => 'skinov']);

$routerGroup -> setPrefix('/skinov');

$routerGroup -> addGet('(/?)', ['controller'=>'Index','action'=>'index']) -> setName('SkinovIndex::index');

$routerGroup -> addGet('/callback/redirectFrontend', ['controller'=>'Callback','action'=>'redirectFrontend']) -> setName('SkinovCallback::redirectFrontend');
$routerGroup -> addGet('/callback/redirectRecommend', ['controller'=>'Callback','action'=>'redirectRecommend']) -> setName('SkinovCallback::redirectRecommend');

$routerGroup -> addGet('/QRCode/wechatRecommend', ['controller'=>'QRCode','action'=>'wechatRecommend']) -> setName('SkinovQRCode::wechatRecommend');

$routerGroup -> addGet('/shop', ['controller'=>'Shop','action'=>'index']) -> setName('SkinovShop::index');

$routerGroup -> addGet('/user', ['controller'=>'User','action'=>'index']) -> setName('SkinovUser::index');

return $routerGroup;
